import re

import requests

headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3'
}
response = requests.get(
        'https://www.shixiseng.com/interns?keyword=%E4%BA%92%E8%81%94%E7%BD%91IT&city=%E5%85%A8%E5%9B%BD&type=intern&from=menu',
        headers=headers)
match = re.search(r'rand=([0-9.]+)', response.text, re.S)
res1 = requests.get('https://www.shixiseng.com/interns/iconfonts/file?rand={}'.format(match.group(1)),
                    headers=headers)

with open("./file.ttf", 'wb') as f:
    f.write(res1.content)

# 将字体文件解析成xml文件
from fontTools.ttLib import TTFont
font = TTFont("./file.ttf")
font.saveXML("./font.xml")